﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DbProject
{
    [Table("User")]
    public class UserModel
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [DisplayName("קוד")]
        public int Id { set; get; }

        [MaxLength(150)]
        [DisplayName("שם משתמש")]
        public string UserName { get; set; }


        [MaxLength(150)]
        [DisplayName("סיסמה")]
        public string Password { set; get; }


        [DisplayName("מזהה עובד")]
        public int  WorkerId { set; get; }

        [DisplayName("משתמש פעיל")]
        public bool Active { set; get; }
    }
}
